Copies a source buffer to a destination image. More...
#include <kanzi/gfx/commands.hpp>
Public Member Functions | |
| CopyBufferToImageCommand () | |
| Constructor. | |
Public Member Functions inherited from kanzi::gfx::BaseCommand | |
| uint32_t | getSize () const |
| Gets the command size in bytes. | |
| uint8_t | getTag () const |
| Gets the command tag. | |
| CommandType | getType () const |
| Gets the command type. | |
| void | setTag (uint8_t tag) |
| Sets the command tag. | |
Public Attributes | |
| ImageHandleGuard | destinationImage |
| The destination image. Must have ImageUsageFlag::CopyDestination. | |
| box3u32 | destinationRegion |
| The destination image region. | |
| ImageSubresource | destinationSubresource |
| The destination subresource. | |
| BufferHandleGuard | sourceBuffer |
| The source buffer. Must have BufferUsageFlag::CopySource. | |
| uint32_t | sourceImageHeight |
| The source height for 3D textures. Value 0 assumes the data is tightly packed according to image dimensions. | |
| uint32_t | sourceOffset |
| The source offset in bytes. | |
| uint32_t | sourceRowLength |
| The source row length in pixels. Value 0 assumes the data is tightly packed according to image dimensions. | |
Additional Inherited Members | |
Protected Member Functions inherited from kanzi::gfx::BaseCommand | |
| BaseCommand (CommandType t, uint32_t s) | |
| Constructor. | |
| BaseCommand (const BaseCommand &other) | |
| Copy Constructor. | |
| BaseCommand & | operator= (const BaseCommand &other) |
| Assignment operator. | |
Copies a source buffer to a destination image.
|
inline |
Constructor.
| BufferHandleGuard kanzi::gfx::CopyBufferToImageCommand::sourceBuffer |
The source buffer. Must have BufferUsageFlag::CopySource.
| uint32_t kanzi::gfx::CopyBufferToImageCommand::sourceOffset |
The source offset in bytes.
| uint32_t kanzi::gfx::CopyBufferToImageCommand::sourceRowLength |
The source row length in pixels. Value 0 assumes the data is tightly packed according to image dimensions.
| uint32_t kanzi::gfx::CopyBufferToImageCommand::sourceImageHeight |
The source height for 3D textures. Value 0 assumes the data is tightly packed according to image dimensions.
| ImageHandleGuard kanzi::gfx::CopyBufferToImageCommand::destinationImage |
The destination image. Must have ImageUsageFlag::CopyDestination.
| box3u32 kanzi::gfx::CopyBufferToImageCommand::destinationRegion |
The destination image region.
| ImageSubresource kanzi::gfx::CopyBufferToImageCommand::destinationSubresource |
The destination subresource.